<?php
class Banco extends AppModel {
	var $name = 'Banco';
	var $useTable = 'bancos';
	var $displayField = 'nombre';
	var $validate = array(
		'id' => array(
			'blank' => array(
				'rule' => array('blank'),
				'on' => 'create' 
			)
		),
		'nombre' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '100')
			)
		)
	);

	/*var $hasMany = array(
		'FacturaPago' => array(
			'className' => 'FacturaPago',
			'foreignKey' => 'banco_id'
		),
		'ReciboGastoPago' => array(
			'className' => 'ReciboGastoPago',
			'foreignKey' => 'banco_id'
		),
		'ReciboVenta' => array(
			'className' => 'ReciboVenta',
			'foreignKey' => 'banco_id'
		)
	);*/
}
?>